package com.xiaobai.spike.service.oauth2;

import com.xiaobai.spike.entity.User;
import com.xiaobai.spike.model.request.AuthRequest;
import com.xiaobai.spike.model.request.TokenRequest;
import com.xiaobai.spike.model.response.TokenResponse;

public interface AuthService {
    String authorizeCode(AuthRequest authRequest);
    TokenResponse authorizeToken(TokenRequest tokenRequest);

    User getByToken(String access_token);
    TokenResponse refreshToken(String refresh_token);

    Integer invalidAccessToken(String access_token);
    Integer invalidRefreshToken(String refresh_token);
}
